package p.ithorns.sample.tracer.otel;

import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.contrib.json.classic.JsonLayout;

import java.util.Map;

/**
 * CustomJsonLayout
 * TODO
 *
 * @author HtL
 * @date 2025/3/20 9:16
 * @since 1.0.0
 */
public class CustomJsonLayout extends JsonLayout {
    public CustomJsonLayout() {
    }

    protected void addCustomDataToJsonMap(Map<String, Object> map, ILoggingEvent event) {
        //map.put("user_name", context.getProperty("userName"));
        //map.put("user_id", context.getProperty("userId"));
        // map.put("trace_id", TraceContext.traceId());
    }
}


